﻿using System.Security.Cryptography.X509Certificates;
namespace Admin.Net.InformationPlatform.Const
{
    /// <summary>
    /// 单别常量
    /// </summary>
    public class DocumentType
    {
        /// <summary>
        /// 成品装配指令单别:BCA2-GS-
        /// </summary>
        public static string FinishedProductAssembly = "BCA2-GS-";
        /// <summary>
        /// 检验单单别 QC15-GS-
        /// </summary>
        public static string Qc = "QC15-GS-";
        /// <summary>
        /// 首检巡检检验单单别 QC13-GS-
        /// </summary>
        public static string FirstQC = "QC13-GS-";
    }
    /// <summary>
    /// 检验类型ReferenceTableN
    /// </summary>
    public class QCType
    {
        /// <summary>
        /// 品管分群
        /// </summary>
        public static string ReferenceNo = "GS";

        /// <summary>
        /// 全通用：0
        /// </summary>
        public static string ALL = "0";
        /// <summary>
        /// IQC：1
        /// </summary>
        public static string IQC = "1";
        /// <summary>
        /// PQC：3
        /// </summary>
        public static string PQC = "3";
        /// <summary>
        /// OQC：4
        /// </summary>
        public static string OQC = "4";
        /// <summary>
        /// 巡检：5
        /// </summary>
        public static string InventoryQC = "5";
        /// <summary>
        /// RQC：6
        /// </summary>
        public static string RQC = "6";
        /// <summary>
        /// SQC：7
        /// </summary>
        public static string SQC = "7";
        /// <summary>
        /// 首检：8
        /// </summary>
        public static string FirstPQC = "8";
        /// <summary>
        /// FQC：2
        /// </summary>
        public static string FQC = "2";
    }


    /// <summary>
    /// 任务id缓存信息
    /// </summary>
    public class CacheTask
    {
        /// <summary>
        /// 任务ID
        /// </summary>
        public string TaskId { get; set; }

        /// <summary>
        /// 创建者Id
        /// </summary>
        public string CreateUserId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 传输值 Submit
        /// </summary>
        public string SubmitJson { get; set; }

    }
    /// <summary>
    /// 任务类型
    /// </summary>
    public class TaskType
    {
        /// <summary>
        /// 装配FQC: AF
        /// </summary>
        public static string Fqc = BarcodeStatusCode.AF;
        /// <summary>
        /// 有交接入库: AS
        /// </summary>
        public static string Fpp = BarcodeStatusCode.AS;
        /// <summary>
        /// 销售出货: MC
        /// </summary>
        public const string Fos = "MC";
        /// <summary>
        /// 有交接入库-上架: AS
        /// </summary>
        public static string Fpps = BarcodeStatusCode.ASN;
        /// <summary>
        /// 无报工任务首检:FirstQcNRW
        /// </summary>
        public static string FirstQc_NoReportWorkOrder = "FirstQcNRW";
        /// <summary>
        /// 无报工任务首检:InventoryQC
        /// </summary>
        public static string InventoryQC_NoReportWorkOrder = "InventoryQcNRW";
        /// <summary>
        /// Pqc
        /// </summary>
        public static string Pqc = "Pqc";
    }
    /// <summary>
    /// 条码仓库类型
    /// </summary>
    public class WarehouseType
    {
        /// <summary>
        /// 发货仓库（订单仓库）:1
        /// </summary>
        public static string OrderWarehouse = "1";

        /// <summary>
        /// 成品仓库:2
        /// </summary>
        public static string FinishedWarehouse = "2";
        /// <summary>
        /// 零件仓库：3
        /// </summary>
        public static string PartsWarehouse = "3";
        /// <summary>
        /// 非条码仓库：X
        /// </summary>
        public static string NonBarcodeWarehouse = "X";


    }


    /// <summary>
    /// 任务交接参数
    /// </summary>
    public class TaskReceiving
    {
        /// <summary>
        /// 走交接:2
        /// </summary>
        public static string Yes = "2";
        /// <summary>
        /// 不交接:1
        /// </summary>
        public static string No = "1";
    }
    /// <summary>
    /// 条码来源
    /// </summary>
    public class BarcodeSource
    {
        /// <summary>
        /// 工单
        /// </summary>
        public static string WorkOrder = "A";

    }

    /// <summary>
    /// 条码状态码
    /// </summary>
    public class BarcodeStatusCode
    {
        /// <summary>
        /// 工单条码：工单已打印状态:AP
        /// </summary>
        public static string AP = "AP";
        /// <summary>
        /// 工单条码：FQC检验中:AF
        /// </summary>
        public static string AF = "AF";
        /// <summary>
        /// 工单条码：FQC检验合格状态:AD
        /// </summary>
        public static string AD = "AD";
        /// <summary>
        /// 工单条码：入库中（交接或无交接）:AS
        /// </summary>
        public static string AS = "AS";
        /// <summary>
        /// 工单条码：上架中（交接）:ASN
        /// </summary>
        public static string ASN = "ASN";
        /// <summary>
        /// 工单条码：已入库：AC
        /// </summary>
        public static string AC = "AC";
    }
    /// <summary>
    /// 订单状态
    /// </summary>
    public class OrderStatusType
    {
        /// <summary>
        /// 已审核
        /// </summary>
        public const string Reviewed = "Y";
        /// <summary>
        /// 未审核
        /// </summary>
        public const string Unreviewed = "N";
        /// <summary>
        /// 1：一般
        /// </summary>
        public const string GeneralStatus = "1";
        /// <summary>
        /// 2：正常结案
        /// </summary>
        public const string NormalSettlement = "2";
        /// <summary>
        /// 3：长结案
        /// </summary>
        public const string LongSettlement = "3";
        /// <summary>
        /// 4：短结案
        /// </summary>
        public const string ShortSettlement = "4";
        /// <summary>
        /// 5：留置
        /// </summary>
        public const string Lien = "5";
    }
    /// <summary>
    /// 采购对账单来源
    /// </summary>
    public class StatementDetailsype
    {
        /// <summary>
        /// 其他加项
        /// </summary>
        public const string OtherAdditions = "19";
        /// <summary>
        /// 其他减项
        /// </summary>
        public const string OtherDecreases = "29";
        /// <summary>
        /// 不加不减
        /// </summary>
        public const string NoAdditionDecrease = "0";
    }

}


